package com.wy.service.wy;

import com.wy.bean.NoticeBean;
import com.wy.model.sys.NoticeEntity;

import java.util.List;

public interface NoticeService {


	/**
	 * 获取公告通知信息
	 * @return
	 */
	List<NoticeBean> noticeList(int pageSize, int start, String content, String type, String ntype, String publishTimeStart, String publishTimeEnd, String status,List<String> rids);

	/**
	 * 获取公告列表的总量
	 *
	 * @return
	 */
	Integer noticeSize(int pageSize, int start, String content,String type,String ntype,String publishTimeStart,String publishTimeEnd,String status,List<String> rids);

	/**
	 * 新建公告通知
	 * 
	 * @param noticeEntity
	 */
	void insertNotice(NoticeEntity noticeEntity);

	/**
	 * 修改公告通知
	 * 
	 * @param noticeEntity
	 */
	void updateNotice(NoticeEntity noticeEntity);

	/**
	 * 删除公告通知
	 * 
	 * @param groupId
	 */
	void deleteNotice(List<String> groupId);

	/**
	 * 获取公告通知信息
	 * @return
	 */
	List<NoticeEntity> noticeList(int pageSize, int start,String type, String ntype, String readStatus,int uid);

	/**
	 * 获取公告列表的总量
	 *
	 * @return
	 */
	Integer noticeSize(int pageSize, int start,String type,String ntype,String readStatus,int uid);


	/**
	 * 根据时间获取未发布的公告
	 * @param time
	 * @return
	 */
	List<NoticeEntity> getNoticeByPublishTime(String time);

}
